@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500&display=swap");

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: "Inter",sans-serif;
}

:root{
    --main_color:#00c3ff;
    --p_color:#ffffff;
    --bg_color:#1F1F1F;
    --white_color:#00ff22;
    --black_color:#070707;
    --border-color: rgba(255, 255, 255, 0.1);
}

body{
    background: #131313;
    overflow-x: hidden;
}

.container{
    width: 90%;
    margin: auto;
    max-width: 1500px;
    padding: 0 15px;
}

section{
    padding: 60px 0;
}

img{
    width: 100%;
    max-width: 100%;
    height: auto;
}

h1,h2,h3,h4,h5,h6{
    color: var(--white_color);
    font-family: "DM Sans", sans-serif;
}

span{
    color: var(--main_color);
}
p{
    color: var(--p_color);
}

/* btns */ 
.btns{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn{
    background: var(--main_color);
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--black_color);
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}
.btn:hover{
    transform: scale(1.05);
}

.btn_no_bg{
    color: var(--white_color);
    text-transform: capitalize;
    text-decoration: underline;
    transition: 0.3s;
}

.btn_no_bg:hover{
    color: var(--main_color);
}

/* Background lines */
.bg-lines span{
    position: fixed;
    top: 0;
    z-index: -1;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    width: 1px;
    animation: left_Right 18s infinite;
}
.bg-lines span:nth-child(0){
    left: 0%;
}
.bg-lines span:nth-child(1){
    left: 10%;
}
.bg-lines span:nth-child(2){
    left: 20%;
}
.bg-lines span:nth-child(3){
    left: 30%;
}
.bg-lines span:nth-child(4){
    left: 40%;
}
.bg-lines span:nth-child(5){
    left: 50%;
}
.bg-lines span:nth-child(6){
    left: 60%;
}
.bg-lines span:nth-child(7){
    left: 70%;
}
.bg-lines span:nth-child(8){
    left: 80%;
}
.bg-lines span:nth-child(9){
    left: 90%;
}
.bg-lines span:nth-child(10){
    left: 100%;
}

@keyframes left_Right {
    0%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(-50px);
    }
    50%{
        transform: translateX(-100px);
    }
    75%{
        transform: translateX(-50px);
    }
    100%{
        transform: translateX(0);
    }
}

/* Section headers */
.top_section{
    text-align: center;
    margin-bottom: 60px;
}
.top_section h2{
    font-size: clamp(24px, 5vw, 30px);
}

/* Start Header */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    transition: 0.3s;
    z-index: 1000;
}
header.active{
    background: var(--black_color);
    border-bottom: 1px solid #56565697;
}
header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
header nav .logo img{
    width: 180px;
    max-width: 100%;
}
header nav .links{
    display: flex;
    gap: 30px;
}
header nav .links a{
    color: var(--white_color);
    text-transform: capitalize;
    font-size: 16px;
    transition: 0.3s;
}
header nav .links a:hover{
    color: var(--main_color);
}
header nav .icons{
    display: flex;
    gap: 20px;
    align-items: center;
}
header nav .icons a{
    color: var(--main_color);
    font-size: 22px;
    transition: 0.3s;
}
header nav .icons a:hover{
    transform: scale(1.2);
}

/* Hero section */
.hero{
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.hero .div_Text{
    width: 100%;
    max-width: 600px;
}
.hero .div_Text h4{
    color: var(--p_color);
    font-size: clamp(22px, 4vw, 35px);
    margin-bottom: 15px;
}
.hero .div_Text h1{
    font-size: clamp(40px, 7vw, 70px);
}
.hero .div_Text h2{
    font-size: clamp(35px, 6vw, 70px);
    font-weight: normal;
    line-height: 0.9;
}
.hero .div_Text p{
    margin: 20px 0;
    font-size: clamp(16px, 3vw, 18px);
    width: 100%;
    line-height: 1.7;
}
.hero .btn{
    font-size: clamp(16px, 3vw, 18px);
    padding: 15px 35px;
}

.hero .div_img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    border-radius: 0 0 600px 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero .div_img .bg_svg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-49%) translateY(31%);
    width: 150%;
    height: auto;
    z-index: -1;
}

.hero .div_img img.person {
    width: 150%;
    max-width: 600px;
    height: auto;
    position: relative;
    z-index: 1;
}

/* About section */
.about .container{
    background: var(--black_color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    padding: 40px;
    flex-wrap: wrap;
    gap: 30px;
}
.about .div_text{
    width: 100%;
    max-width: 600px;
}
.about .div_text h5{
    color: var(--p_color);
    font-size: 18px;
    text-transform: capitalize;
}
.about .div_text h2{
    font-size: clamp(28px, 5vw, 45px);
    margin: 20px 0 5px;
}
.about .div_text h4{
    font-size: clamp(22px, 4vw, 30px);
    margin-bottom: 20px;
}

.about .div_text p{
    line-height: 1.8;
}
.about .div_text ul{
    display: flex;
    color: var(--white_color);
    margin: 25px 0 20px;
    flex-wrap: wrap;
}
.about .div_text ul li{
    width: 100%;
    font-weight: bold;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-right: 10px;
}
.about .div_text ul li i{
    color: var(--main_color);
    flex-shrink: 0;
}

.about .div_img{
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Services section */
.services .boxs{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.services .boxs .box{
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.services .boxs .box i{
    color: var(--main_color);
    font-size: 50px;
    margin-bottom: 25px;
    transition: 0.3s;
}
.services .boxs .box h3{
    font-size: clamp(20px, 4vw, 25px);
    margin-bottom: 20px;
}
.services .boxs .box p{
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
    flex-grow: 1;
    overflow: hidden;
}
.services .boxs .box .btn{
    margin-top: auto;
    display: inline-block;
}
.services .boxs .box:hover{
    border-color: var(--main_color);
}
.services .boxs .box:hover i{
    transform: scale(1.2);
}

/* Projects section */
.projects .project_box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}
.projects .project_box img,
.projects .project_box video{
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}
.projects .project_box .text{
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.projects .project_box .text h4{
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 15px;
    font-weight: normal;
}
.projects .project_box .text h3 a{
    font-size: clamp(24px, 5vw, 40px);
    color: var(--white_color);
    transition: 0.5s;
}
.projects .project_box .text h3 a:hover{
    color: var(--main_color);
}
.projects .project_box .text p{
    margin: 20px 0 40px;
    line-height: 1.8;
}

.projects .project_box .text .link{
    display: block;
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    color: var(--black_color);
    font-size: 20px;
    background: var(--main_color);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    transform: rotate(45deg);
    transition: 0.3s ease-in-out;
}
.projects .project_box .text .link:hover{
    transform: rotate(45deg) scale(1.2);
}

/* Contact section */
.contact .container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact .soial_contact{
    width: 100%;
    max-width: 450px;
}

.contact .soial_contact h2{
    color: var(--white_color);
    margin-bottom: 30px;
    font-size: clamp(24px, 5vw, 30px);
}

.contact .soial_contact .links{
    display: flex;
    flex-direction: column;
}

.contact .soial_contact .links a{
    color: var(--white_color);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    left: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact .soial_contact .links a i{
    color: var(--bg_color);
    margin-right: 10px;
    width: 40px;
    height: 40px;
    background: var(--main_color);
    text-align: center;
    line-height: 40px;
    border-radius: 5px;
    flex-shrink: 0;
}
.contact .soial_contact .links a:hover{
    left: 10px;
}

.contact form{
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact form .inpts_form{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}
.contact form .inpts_form input,
.contact form .inpts_form textarea{
    border-radius: 5px;
    padding: 15px;
    outline: none;
    background-color: var(--bg_color);
    color: white;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    width: 100%;
}

.contact form .inpts_form input{
    width: calc(50% - 8px);
}
.contact form .inpts_form textarea{
    width: 100%;
}

.contact form .inpts_form input:focus,
.contact form .inpts_form textarea:focus{
    border-color: var(--main_color);
}

.contact .btn{
    outline: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}
.contact .btn:hover{
    transform: scale(1.05);
}

/* Mobile menu styles */
.close_menu,
header .links .logo,
.icon_menu{
    display: none;
}

/* Responsive styles */
@media (max-width: 1200px) {
    section {
        padding: 50px 0;
    }
    .top_section {
        margin-bottom: 50px;
    }
}

@media (max-width: 1024px) {
    .hero .div_Text,
    .about .div_text,
    .about .div_img,
    .projects .project_box .text,
    .projects .project_box img,
    .projects .project_box video {
        width: 100%;
        max-width: 100%;
    }
    
    .hero .div_img {
        max-width: 400px;
    }
    
    .projects .project_box {
        margin-bottom: 40px;
    }
    
    .projects .project_box.project_box_2 {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    header {
        height: 70px;
    }
    
    header nav .links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        width: 280px;
        background: var(--black_color);
        padding: 50px 0;
        height: 100vh;
        border-right: 1px solid var(--border-color);
        text-align: center;
        transition: 0.3s ease-in-out;
        z-index: 1001;
    }
    
    header nav .links.open {
        left: 0;
    }
    
    .close_menu {
        display: block;
        font-size: 24px;
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--white_color);
        cursor: pointer;
    }
    
    header .links .logo {
        display: block;
        margin-bottom: 30px;
    }
    
    .icon_menu {
        display: block;
        font-size: 24px;
        color: var(--white_color);
        cursor: pointer;
    }
    
    .about .container {
        padding: 30px 20px;
    }
    
    .contact .soial_contact,
    .contact form {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero .div_Text h1,
    .hero .div_Text h2 {
        font-size: clamp(35px, 6vw, 50px);
    }
    
    .about .div_text ul li {
        width: 100%;
    }
    
    .services .boxs .box {
        max-width: 100%;
    }
    
    .projects .project_box .text h3 a {
        font-size: clamp(22px, 4vw, 30px);
    }
    
    .contact form .inpts_form input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero .btns {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero .btns .btn,
    .hero .btns .btn_no_bg {
        width: 100%;
        text-align: center;
    }
    
    header nav .logo img {
        width: 140px;
    }
    
    header nav .icons a {
        font-size: 18px;
    }
    
    header nav .icons {
        gap: 15px;
    }
    
    .about .container {
        padding: 25px 15px;
    }
}

@media (max-width: 400px) {
    header nav .icons a:nth-child(3),
    header nav .icons a:nth-child(4) {
        display: none;
    }
    
    .hero .div_Text h4 {
        font-size: 20px;
    }
    
    .hero .div_Text h1,
    .hero .div_Text h2 {
        font-size: 32px;
    }
    
    .about .div_text h2 {
        font-size: 28px;
    }
}